package com.tengju.motivation.infrastructure.repository.activity.convert;

import com.tengju.motivation.domain.model.activity.TargetId;
import com.tengju.motivation.infrastructure.persistence.mybatis.dataobject.MotivationActivityTargetDetailDO;

/**
 * @author: 大木
 * @date: 2021/10/14 10:55 下午
 */
public class MotivationActivityTargetDetailConvert {
//
//    public static ActivityTargetDetail convert(MotivationActivityTargetDetailDO motivationActivityTargetDetailDO) {
//        if (motivationActivityTargetDetailDO == null){
//            return null;
//        }
//        return new ActivityTargetDetail(
//                new TargetId(motivationActivityTargetDetailDO.getTargetId()),
//                motivationActivityTargetDetailDO.getActivityId(),
//                motivationActivityTargetDetailDO.getActivityBranchId(),
//                motivationActivityTargetDetailDO.getActivityDate(),
//                motivationActivityTargetDetailDO.getTargetTitle(),
//                motivationActivityTargetDetailDO.getTargetType(),
//                motivationActivityTargetDetailDO.getTargetValue(),
//                motivationActivityTargetDetailDO.getTargetSubjectType(),
//                motivationActivityTargetDetailDO.getTargetSubjects(),
//                motivationActivityTargetDetailDO.getTargetCompareSubjectType(),
//                motivationActivityTargetDetailDO.getTargetCompareSubjects(),
//                motivationActivityTargetDetailDO.getCreateBy(),
//                motivationActivityTargetDetailDO.getUpdateBy()
//        );
//    }
//
//    public static MotivationActivityTargetDetailDO convert(ActivityTargetDetail activityTargetDetail) {
//        return new MotivationActivityTargetDetailDO(
//                activityTargetDetail.getTargetId().getValue(),
//                activityTargetDetail.getActivityId(),
//                activityTargetDetail.getActivityBranchId(),
//                activityTargetDetail.getActivityDate(),
//                activityTargetDetail.getTargetTitle(),
//                activityTargetDetail.getTargetType(),
//                activityTargetDetail.getTargetValue(),
//                activityTargetDetail.getTargetSubjectType(),
//                activityTargetDetail.getTargetSubjects(),
//                activityTargetDetail.getTargetCompareSubjectType(),
//                activityTargetDetail.getTargetCompareSubjects(),
//                activityTargetDetail.getCreateBy(),
//                activityTargetDetail.getUpdateBy(),
//                null,
//                null
//        );
//    }

}
